<?php
/**
 * @author Feng
 * @date 2012-6-16
 */
class collection_error_concept extends system_concept_abstract {
	
	public function __construct($lang) {
		parent::__construct(array('lang' => $lang), array('lang = ?' => $lang));
	}
	
	public function init() {
		$this->setModel('collection_error_model', 'error');
		$this->setJoinLeftModel('resource_link_model', 'link.`key` = error.link', 'link');
		$this->setModelCols('error', array('id', 'lang', 'link', 'message', 'params', 'creationtime'));
		$this->setModelCols('link', array('key', 'url'));
	}
	
}
